﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Process.DAL;
using Process.Entities;

namespace Process.BLL
{
    public class TransactionBLL
    {
        private TransactionDAL _TransDAL = new TransactionDAL();

        public void InsertTransaction(TransactionENT trans)
        {
            _TransDAL.InsertTransaction(trans);
        }

        public bool AcceptTrans(string transID)
        {
            return _TransDAL.UpdateTransactionStatus(transID, TransStatus.Success);
        }

        public bool RefuseTrans(string transID)
        {
            return _TransDAL.UpdateTransactionStatus(transID, TransStatus.Failure);
        }
    }
}
